package com.fy.module.exam.controller;


import com.fy.module.repo.entity.Repo;
import com.fy.module.repo.mapper.RepoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 课程 前端控制器
 * </p>
 *
 * @author 黑马互联IT有限公司-yiyi
 * @since 2023-03-23
 */
@RestController
@RequestMapping("/exam")
public class ExamController {

    @Autowired
    private RepoMapper repoMapper;

    /**
     * 查询所有的题库
     */
    @GetMapping("/repo")
    public List<Repo> selectRepo(){
        return repoMapper.selectList(null);
    }


}
